home *** CD-ROM | disk | FTP | other *** search
- Path: FreeNet.Carleton.CA!ah956
- From: ah956@FreeNet.Carleton.CA (Susheel Jalali)
- Newsgroups: comp.lang.c++
- Subject: g++2.7.0/Solaris: can't lookup method -incomplete type
- Date: 25 Mar 1996 17:57:40 GMT
- Organization: National Capital Freenet, Ottawa, Canada
- Sender: ah956@freenet2.carleton.ca (Susheel Jalali)
- Message-ID: <4j6mqk$kb@freenet-news.carleton.ca>
- NNTP-Posting-Host: freenet2.carleton.ca
-
-
-
- Hi All,
-
- I am puzzled by a couple of messages from my g++ 2.7.0 compiler
- on Sun Solaris system.
-
- I am calling a member function of an already compiled
- class Machine, but when I compile the calling class I get an
- error:
-
- // First to show that the class Machine was successfully compiled:
- // Then how/why does 'Machine' become an incomplete type when
- // class Network is being compiled?
-
- Compiling Machine.o
- In file included from Machine.h:27,
- from Machine.cc:11:
- Network.h:29: warning: template `Queue<MessageCarrier *>::Queue()' instantiated
- in file without #pragma interface
-
- Compiling Network.o
- In file included from Network.cc:7:
- Network.h:29: warning: template `Queue<MessageCarrier *>::Queue()' instantiated
- in file without #pragma interface
- Network.cc: In method `void Network::endOfService()':
- Network.cc:109: cannot lookup method in incomplete type `Machine'
-
-
- I would like to know the meaning of the two errors:
-
- Network.h:29: warning: template
- `Queue<MessageCarrier *>::Queue()' instantiated
- in file without #pragma interface
- Compiling MachineShop.o
-
- and,
-
- cannot lookup method in incomplete type `Machine'
-
- Please e-mail me as well, if you decide to post the reply into the
- newsgroup.
-
- Thanks for any help you can provide,
-
- Susheel
-
-